<!DOCTYPE html>
<html lang="zh-CN">
    <head>
        <meta charset="UTF-8" />
        <title>26_定时器-单次定时器和循环定时器同事出现的id值</title>
    </head>
    <body>
        <script>
            var timer = setTimeout(function(){
                console.log(11111);
            },2000);

            var timer2 = setInterval(function(){
                console.log(22222);
            },4000);

            console.log(timer,timer2);
        </script>
    </body>
</html>